import pickle


class Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def introduce(self):
        print(f"My name is {self.name}, I am {self.age} years old.")


p = Person(name="John", age=17)
seq = pickle.dumps(p)
p2 = pickle.loads(seq)
p2.introduce()
